for i=1,10 do
   for j=1,10 do
     if(j>=i and j<=10-i) then
       io.write('*');
     elseif(j<=i and j>=10-i) then
       io.write('*');
     else
       io.write(' ');
     end
   end   
   io.write('\n')
   
end

